package com.qfedu.edu;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity;

@SpringBootApplication
//使能这个注解授权
@EnableGlobalMethodSecurity(prePostEnabled = true,securedEnabled = true)
public class SpringbootSpringsecurityDemo1Application {
    public static void main(String[] args) {
        SpringApplication.run(SpringbootSpringsecurityDemo1Application.class, args);
    }
}
